package ink.sunflowerk.dao;


import ink.sunflowerk.entity.User;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {

     int updateOne(User user);

     @Select("select * from tab_user where uname=#{uname} limit 0,1")
     User getOneByUname(String uname);

     @Select("select * from tab_user where uid=#{uid}")
     User getOneByUid(int uid);
}
